/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const entityRouter = {
  path: '/entity',
  component: Layout,
  redirect: '/entity/workshop',
  name: 'entity',
  meta: {
    title: '配置管理',
    icon: 'form',
    roles: ['管理员']
  },
  children: [
    // {
    //   path: 'workshop',
    //   component: () => import('@/views/entity/index'),
    //   name: 'workshop',
    //   meta: { title: '生产车间管理' }
    // },
    {
      path: 'BilletWarehouse',
      component: (resolve) => require(['@/views/entity/BilletWarehouse'], resolve),
      // component: () => import('@/views/entity/BilletWarehouse'),
      name: 'BilletWarehouse',
      meta: { title: '生坯仓库管理' }
    },
    {
      path: 'BilletedWarehouse',
      component: (resolve) => require(['@/views/entity/BilletedWarehouse'], resolve),
      // component: () => import('@/views/entity/BilletedWarehouse'),
      name: 'BilletedWarehouse',
      meta: { title: '熟坯仓库管理' }
    },
    {
      path: 'ProcessingCompany',
      component: (resolve) => require(['@/views/entity/ProcessingCompany'], resolve),
      // component: () => import('@/views/entity/ProcessingCompany'),
      name: 'ProcessingCompany',
      meta: { title: '加工企业管理' }
    },
    {
      path: 'Customer',
      component: (resolve) => require(['@/views/entity/Customer'], resolve),
      // component: () => import('@/views/entity/Customer'),
      name: 'Customer',
      meta: { title: '客户管理' }
    },
    {
      path: 'Variety',
      component: (resolve) => require(['@/views/entity/Variety'], resolve),
      // component: () => import('@/views/entity/Variety'),
      name: 'Variety',
      meta: { title: '品种管理' }
    }
  ]
}
export default entityRouter
